//package src;

import java.awt.event.*;
import javax.swing.*;

public class EventHandler implements ActionListener {

	public Order ordering;
  
	public void actionPerformed(ActionEvent event)
	{
		int i = Integer.parseInt(event.getActionCommand()); 
		switch(i) 
		{
		case 10 : 
			ordering = new DrawFree();
			break;
		case 11 :
			ordering = new DrawLine();
			break;
		case 12 :
			ordering = new DrawOval();
			break;
		case 13 :
			ordering = new DrawRect();
			break;

		}  		
	}		
}
